package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.model.entity.ApplyEntity;
import com.example.demo.model.entity.ClassTypeEntity;
import com.example.demo.model.param.ApplyParam;
import com.example.demo.model.param.ClassTypeParam;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ClassTypeMapper extends BaseMapper<ClassTypeEntity> {

    @Select("<script>select * from t_classtype where 1=1<when test='param.name != null and param.name != \"\"'>and name = #{param.name}</when></script>")
    List<ClassTypeEntity> selectClassTypeList(@Param("param") ClassTypeParam classTypeParam);
}
